package com.qf.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
public class Device {
    private int id;
    private String sn;//设备id编号
    private String name;
    private String location;//设备位置
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date installTime;//安装时间
    private String manufacturer;//生产厂家
    private int userId;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;
    private Date updatetime;
    private User user;


    private int farmId;
    private Farm farm;
    private int typeId;
    private DeviceType deviceType;

}
